﻿
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
PHP入门篇_课程评论_慕课网
</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
<meta property="qc:admins" content="77103107776157736375" />
<meta property="wb:webmaster" content="c4f857219bfae3cb" />
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
<meta http-equiv="Cache-Control" content="no-transform " />
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' *.imooc.com *.mukewang.com *.baidu.com *.sina.com.cn *.bootcss.com">

<meta name="Keywords" content="" />


<meta name="Description" content="轻松学习PHP基础知识，了解PHP中的变量、变量的类型、常量等概念，认识PHP中的运算符，掌握PHP中顺序结构、条件结构、循环结构三种语言结构语句。"/>








<link rel="stylesheet" href="css/moco.min_1.css" type="text/css" />

<script type="text/javascript">

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('!4(){3 6=a;3 l=4(){3 b,e=9 y("(^| )"+"c=([^;]*)(;|$)");j(b=h.g.z(e)){k w(b[2])}x{k a}};3 8=4(t){3 f=l();3 7=9 o();7.A(7.d()+B*i*i*r);h.g="c="+t+";s="+7.M()+";N=/;L=O.m";j(t&&t!=f){Q.P.G()}};3 5=9 E();5.H=4(){K(6);6=a;8(0)};5.J=4(){8(1)};6=I(4(){5.n="";8(1)},F);5.n=\'R://p.u.m/p/v/q/D.C?t=\'+9 o().d()}()',54,54,'|||var|function|imgobj|timer|exp|setcookie|new|null|arr|IMCDNS|getTime|reg|_0|cookie|document|60|if|return|getcookie|com|src|Date|static|common|1000|expires||mukewang|img|unescape|else|RegExp|match|setTime|24|png|logo|Image|3000|reload|onload|setTimeout|onerror|clearTimeout|domain|toGMTString|path|imooc|location|window|http'.split('|'),0,{}))

</script>


<script type="text/javascript">

var OP_CONFIG={"module":"course","page":"comment","userout":0};
var isLogin = 0;
var is_choice = "";
var seajsTimestamp="v=201705081743";
var _msg_unread = 0; 
var _not_unread = 0; 
var _cart_num = 0;
</script>








<script>
/*学习页通用配置*/
var GC = {
  course: {
    id: 54,
    name: 'PHP入门篇',
    pic: '',
    video_url: ''
  },
  classmates: 20 // 你的同学一页显示数量
};


</script>
<script>

var hasLearn;
    hasLearn = 0;

</script>



<link rel="stylesheet" href="css/0b9ce4bd03484849a97e67268d8b3c50.css" type="text/css" />
</head>
<body >

<div id="header">
    <div class="page-container" id="nav">
        <div id="logo" class="logo"><a href="/" target="_self" class="hide-text" title="首页">慕课网</a></div>


        <button type="button" class="navbar-toggle visible-xs-block js-show-menu" >
            <i class="icon-menu"></i>
        </button>
        <ul class="nav-item">
                        <li class="set-btn visible-xs-block"><a href="/user/newlogin" target="_self">登录</a> / <a href="/user/newsignup" target="_self">注册</a></li>
                        
            <li>
                <a href="/course/list"  target="_self">课程</a>
            </li>
            <li><a href="http://class.imooc.com" class="program-nav " target="_self">职业路径<i class="icn-new"></i></a></li>
            <li>
                <a href="http://coding.imooc.com" target="_self">实战</a>
            </li>
            <li><a href="/wenda"  target="_self">猿问</a></li>
            <li><a href="/article"  target="_self">手记</a></li>
            
        </ul>
                <div id="login-area">
            <ul class="header-unlogin clearfix">
                <li class="shop-cart" id="shop-cart">
                    <a href="http://order.imooc.com/pay/cart" class="shop-cart-icon" target="_blank">
                        <span class="icon-shopping-cart js-endcart"></span>
                        <span class="shopping_icon js-cart-num" data-ordernum="0"  data-cartnum="0" style='display: none'>0</span>
                        <span>购物车</span>
                    </a>
                    <div class="my-cart" id="js-my-cart"></div>
                </li>
                <li class="header-signin">
                    <a href="#" id="js-signin-btn">登录</a>
                </li>
                <li class="header-signup">
                    <a href="#" id="js-signup-btn">注册</a>
                </li>
            </ul>
        </div>
                <div class='search-warp clearfix' style='min-width: 32px; height: 60px;'>
                            <div class="pa searchTags" >
                                    <a href="http://class.imooc.com/sc/20" target="_blank">前端小白</a>
                                    <a href="http://class.imooc.com/sc/22" target="_blank">PHP入门</a>
                                </div>
            
            <div class="search-area" data-search="top-banner">
                <input class="search-input" data-suggest-trigger="suggest-trigger"      type="text" autocomplete="off">
                <input type='hidden' class='btn_search' data-search-btn="search-btn" />
                <ul class="search-area-result" data-suggest-result="suggest-result">
                </ul>
            </div>
            <div class='showhide-search' data-show='no'><i class='icon-search'></i></div>
        </div>
    </div>
</div>

<div class="bindHintBox js-bindHintBox hide">
    <div class="pr">
        为了账号安全，请及时绑定邮箱和手机<a href="/user/setbindsns" class="ml20 color-red" target="_blank">立即绑定</a>
        <button  class="closeBindHint js-closeBindHint" type="button"></button>
        <div class="arrow"> </div>
    </div>
</div>


<div id="main">


<div class="course-infos">
    <div class="w pr">
        <div class="path">  
            <a href="/course/list">课程</a>
                        <i class="path-split">\</i><a href="/course/list?c=be">后端开发</a>
                                    <i class="path-split">\</i><a href="/course/list?c=php">PHP</a>
                        <i class="path-split">\</i><a href="/learn/54"><span>PHP入门篇</a></span>
        </div>
        <div class="hd clearfix">
            <h2 class="l">PHP入门篇</h2>
                    </div>

        <div class="statics clearfix">
            
                        <div class="moco-btn l learn-btn green-btn red-btn"> 
                <a href="/code/856" class="J-learn-course">开始学习</a>
                <em></em>
                <i class="follow-action js-follow-action"></i>
            </div>
                        
            
                        
            <div class="static-item l">
                <span class="meta">学习人数</span>
                <span class="meta-value js-learn-num"></span>
                            </div>
            <div class="static-item l">
                <span class="meta">难度级别</span>
                <span class="meta-value">初级</span>
                <em></em>
            </div>
            <div class="static-item l">
                <span class="meta">课程时长</span>
                <span class="meta-value"> 5小时57分</span>
                <em></em>
            </div>
            <div class="static-item l score-btn">
                <span class="meta">综合评分</span>
                <span class="meta-value">9.5</span>
                <em></em>
                
                                
                <div class="score-wrap icon-drop_up triangle">
                    <div class="score-box">
                        <a href="/coursescore/54" class="person-num">
                            <span class="person-num l">562人评价</span>
                        </a>
                                                    <a href="/coursescore/54?page=1" class="evaluation-btn r">查看评价</a>
                                                <div class="score-detail-box">
                            <div class="score-static-item">
                                <span class="meta-value">9.7</span>
                                <span class="meta">内容实用</span>
                            </div>
                            <div class="score-static-item">
                                <span class="meta-value">9.5</span>
                                <span class="meta">简洁易懂</span>
                                <em></em>
                            </div>
                            <div class="score-static-item">
                                <span class="meta-value">9.2</span>
                                <span class="meta">逻辑清晰</span>
                                <em></em>
                            </div>
                        </div>
                    </div>
                </div>
                
            </div>
            
        </div>
        <div class="extra">
            <!-- credit -->
            <div class="share-rl-tips share-posi js-share-statue">
                <span class="icon-drop_up share-triangle"></span>
                <span>分享即可 +</span><strong>1积分</strong>
            </div>
            <!-- share -->
            <div class="share-action r bdsharebuttonbox">
                <a href="javascript:;" class="share wx js-share icon-share-weichat" data-cmd="weixin"></a>
                <a href="javascript:;" class="share qq js-share icon-share-qq" data-cmd="qzone"></a>
                <a href="javascript:;" class="share sina js-share icon-share-weibo" data-cmd="tsina"></a>
            </div>
        </div>
    </div>
    <div class="info-bg" id="js-info-bg">
        <div class="cover-img-wrap">
        <img data-src="picture/55af49b800011edd06000338.jpg" alt="" style="display: none" id="js-cover-img">
        </div>
        <div class="cover-mask"></div>
    </div>
    
        
</div>

<div class="course-info-main clearfix w">
    <div class="content-wrap clearfix">
        <div class="content">
            <!-- 课程简介 -->
            <div class="course-brief">
                <p class="auto-wrap">简介：轻松学习PHP基础知识，了解PHP中的变量、变量的类型、常量等概念，认识PHP中的运算符，掌握PHP中顺序结构、条件结构、循环结构三种语言结构语句。</p>
            </div>
            <!-- 课程简介 end -->
            <div class="mod-tab-menu ">
	<ul class="course-menu clearfix">
		<li><a class="ui-tabs-active " id="learnOn"  href="/learn/54"><span>章节</span></a></li>
		<li><a id="commentOn" class="active" href="/comment/54"><span>评论</span></a></li>
		<li><a id="qaOn" class="" href="/qa/54/t/1?page=1"><span>问答</span></a></li>
		<li><a id="noteOn" class="" href="/note/54?sort=last&page=1"><span>笔记</span></a></li>
	    <!--
        <li><a id="wikiOn" class="" href="/wiki/54">WIKI</a></li>
        -->
	</ul>
	
</div><!-- 课程面板 -->

            
<!--发布评论-->
<div id="course_note">
        <ul class="mod-post" id="comment-list">
                <li class="post-row" id="120741">
            <div class="media">
                <a href="/u/2097963/courses" target="_blank"><img src="picture/55913dc00001c74b01000100-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/2097963/courses" target="_blank">暗影_shadow</a>
                </div>
                <p class="cnt">$a = fopen(&quot;打开文件根目录&quot;,&quot;r&quot;);//打开文件<br />
$b = fgets($a);//读取文件中的内容<br />
$c = fclose($a);//关闭文件<br />
感觉我解释清楚的麻烦给个赞！！！！！！！！！！！！</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：2015-10-12</span>
                                        <a href="/code/754" class="from">源自：3-13 PHP第一种特殊类型—资源</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="120741">
                            <span class="icon-thumb-revert"></span>
                            <em>512</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="26889">
            <div class="media">
                <a href="/u/1228763/courses" target="_blank"><img src="picture/54f33a9500012ac305100510-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/1228763/courses" target="_blank">我是小信封</a>
                </div>
                <p class="cnt">单引号与双引号的作用是有区别的：双引号解析变量，单引号不解析变量。<br />
&lt;?php <br />
$love = &quot;I love you!&quot;; <br />
$string1 = &quot;慕课网,$love&quot;;<br />
$string2 = &#039;慕课网,$love&#039;;<br />
echo $string1;<br />
echo &quot;&lt;br /&gt;&quot;;<br />
echo $string2;<br />
?&gt;<br />
显示的结果为：<br />
慕课网,I love you!<br />
慕课网,$love</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：2015-03-04</span>
                                        <a href="/code/748" class="from">源自：3-9 PHP标量类型—字符串（1）</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="26889">
                            <span class="icon-thumb-revert"></span>
                            <em>288</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="46320">
            <div class="media">
                <a href="/u/1174943/courses" target="_blank"><img src="picture/54b0e55000014ff601000100-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/1174943/courses" target="_blank">﹄個亾の琴键</a>
                </div>
                <p class="cnt">按照视频改完以后连localhost都打不开了</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：2015-05-07</span>
                                        <a href="/video/3521" class="from">源自：2-4 WAMPServer多站点配置</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="46320">
                            <span class="icon-thumb-revert"></span>
                            <em>215</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="432794">
            <div class="media">
                <a href="/u/5321364/courses" target="_blank"><img src="picture/5333a0490001f9ff02200220-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5321364/courses" target="_blank">慕桂英7436433</a>
                </div>
                <p class="cnt">求大神带啊</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：28分钟前</span>
                                        <a href="/code/856" class="from">源自：1-1 PHP可以做什么？</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="432794">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="432776">
            <div class="media">
                <a href="/u/5318852/courses" target="_blank"><img src="picture/591987a30001bf2a01000100-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5318852/courses" target="_blank">不是铭跃</a>
                </div>
                <p class="cnt">1个字节有8各位，1各位由0或1组成，即2的8次方=256</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：55分钟前</span>
                                        <a href="/code/748" class="from">源自：3-9 PHP标量类型—字符串（1）</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="432776">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="432676">
            <div class="media">
                <a href="/u/5317832/courses" target="_blank"><img src="picture/54584cc500019c5b02200220-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5317832/courses" target="_blank">宝慕林8301980</a>
                </div>
                <p class="cnt">windows无法打开此文件“httpd-vhosts.conf”</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：13小时前</span>
                                        <a href="/video/3521" class="from">源自：2-4 WAMPServer多站点配置</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="432676">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="432572">
            <div class="media">
                <a href="/u/5318748/courses" target="_blank"><img src="picture/591981b40001edfe01000100-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5318748/courses" target="_blank">qq_致命_0</a>
                </div>
                <p class="cnt">lalala</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：16小时前</span>
                                        <a href="/code/858" class="from">源自：1-3 PHP-Echo语句</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="432572">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="432556">
            <div class="media">
                <a href="/u/5317950/courses" target="_blank"><img src="picture/59195d040001f3e201000100-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5317950/courses" target="_blank">qq_心如柠檬天然酸i_0</a>
                </div>
                <p class="cnt">复制粘贴的人注意了，代码中引号有点问题，建议自己敲一下</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：17小时前</span>
                                        <a href="/code/877" class="from">源自：5-1 什么是运算符</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="432556">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="432538">
            <div class="media">
                <a href="/u/2832151/courses" target="_blank"><img src="picture/54584cec0001f21302200220-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/2832151/courses" target="_blank">zhanghao2016</a>
                </div>
                <p class="cnt">&lt;?php<br />
$p=&quot;&quot;;<br />
//定义圆周率取值<br />
define(&quot;PI1&quot;,&quot;3.14&quot;);<br />
define(&quot;PI2&quot;,&#039;3.142&#039;);<br />
//定义值得精度<br />
$jingdu=&quot;低&quot;;<br />
$p=$jingdu==&quot;低&quot;?&quot;PI1&quot;:&quot;PI2&quot;;<br />
$r=2;<br />
$mianji=constant($p)*$r*$r;<br />
echo $mianji;<br />
?&gt;</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：17小时前</span>
                                        <a href="/code/807" class="from">源自：4-4 PHP-常量如何取值</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="432538">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="432498">
            <div class="media">
                <a href="/u/5318168/courses" target="_blank"><img src="picture/545866d10001a57002200220-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5318168/courses" target="_blank">流年丶潇洒</a>
                </div>
                <p class="cnt">来个可爱的  学姐  学长带带我</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：18小时前</span>
                                        <a href="/code/856" class="from">源自：1-1 PHP可以做什么？</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="432498">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="432139">
            <div class="media">
                <a href="/u/4507550/courses" target="_blank"><img src="picture/583eb4c60001667a06400640-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/4507550/courses" target="_blank">姜梓第四</a>
                </div>
                <p class="cnt">老师讲的很不错</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：1天前</span>
                                        <a href="/video/3510" class="from">源自：2-1 WAMPServer集成环境下载和安装</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="432139">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="432045">
            <div class="media">
                <a href="/u/5291683/courses" target="_blank"><img src="picture/591151cd000160eb01000100-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5291683/courses" target="_blank">关爱PHP成长协会会长</a>
                </div>
                <p class="cnt">这个京东的广告竟然没被拦截。</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：1天前</span>
                                        <a href="/code/949" class="from">源自：6-1 PHP-顺序结构</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="432045">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="431994">
            <div class="media">
                <a href="/u/5138774/courses" target="_blank"><img src="picture/533e4cc800016ffd02200220-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5138774/courses" target="_blank">DSF6123499</a>
                </div>
                <p class="cnt">老师我爱你！</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：1天前</span>
                                        <a href="/video/2194" class="from">源自：7-9 outline大纲功能</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="431994">
                            <span class="icon-thumb-revert"></span>
                            <em>1</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="431990">
            <div class="media">
                <a href="/u/5138774/courses" target="_blank"><img src="picture/533e4cc800016ffd02200220-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5138774/courses" target="_blank">DSF6123499</a>
                </div>
                <p class="cnt">“走过路过，赚大发了”<br />
<br />
老师你太牛逼了，开个某某直播吧？</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：1天前</span>
                                        <a href="/video/2193" class="from">源自：7-8 Zend Studio-查看快捷键列表并修改快捷键</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="431990">
                            <span class="icon-thumb-revert"></span>
                            <em>1</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="431844">
            <div class="media">
                <a href="/u/5185829/courses" target="_blank"><img src="picture/58ef35310001a3d901000100-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5185829/courses" target="_blank">磊淼焱</a>
                </div>
                <p class="cnt">定义常量用bool define(&quot;a&quot;,3，true);<br />
定义一个值为3的常量，对大小写不敏感。</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：2天前</span>
                                        <a href="/code/804" class="from">源自：4-1 PHP-什么是常量</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="431844">
                            <span class="icon-thumb-revert"></span>
                            <em>1</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="431839">
            <div class="media">
                <a href="/u/1240073/courses" target="_blank"><img src="picture/54d822770001467200910089-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/1240073/courses" target="_blank">小李喝粥</a>
                </div>
                <p class="cnt">变量  $p=&quot;3.14&quot;;   则可直接 $area= $p*$r*$r;   计算<br />
若给 $p  赋的是一个常量值  在使用$p里的数据时就应用  constant($p)</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：2天前</span>
                                        <a href="/code/807" class="from">源自：4-4 PHP-常量如何取值</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="431839">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="431834">
            <div class="media">
                <a href="/u/5310295/courses" target="_blank"><img src="picture/545847990001d46402200220-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/5310295/courses" target="_blank">慕仔7255901</a>
                </div>
                <p class="cnt">为毛我的phpMyAdmin需要用户名和密码</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：2天前</span>
                                        <a href="/video/3518" class="from">源自：2-2 WAMPServer服务控制面板介绍</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="431834">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
              <li class="post-row" id="431688">
            <div class="media">
                <a href="/u/3012783/courses" target="_blank"><img src="picture/56dfad4200013af702790279-40-40.jpg" width="40" height="40"></a>
            </div>
            <div class="bd">
                <div class="tit">
                    <a href="/u/3012783/courses" target="_blank">CWANG_</a>
                </div>
                <p class="cnt">不要老是说编译器报错，检查代码是不是变量写错了，笔记本键盘不好a经常按成q，还是给你提示了通过而已，但他有的地方又严格，有的地方不是全部检测就给你过了会报错</p>
                <div class="footer clearfix">
                    <span title="创建时间" class="l timeago">时间：2天前</span>
                                        <a href="/code/881" class="from">源自：5-4 PHP中的比较运算符</a>
                                        <div class="actions r">
                        <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="431688">
                            <span class="icon-thumb-revert"></span>
                            <em>0</em>
                        </a>
                    </div>
                </div>
            </div>
      </li>
          </ul>
    <div class="page"><span class="disabled_page">首页</span><span class="disabled_page">上一页</span><a href="javascript:void(0)" class="active text-page-tag">1</a><a class="text-page-tag" href="/course/comment/id/54?page=2">2</a><a class="text-page-tag" href="/course/comment/id/54?page=3">3</a><a class="text-page-tag" href="/course/comment/id/54?page=4">4</a><a class="text-page-tag" href="/course/comment/id/54?page=5">5</a><a class="text-page-tag" href="/course/comment/id/54?page=6">6</a><a class="text-page-tag" href="/course/comment/id/54?page=7">7</a><a href="/course/comment/id/54?page=2">下一页</a><a href="/course/comment/id/54?page=501">尾页</a></div>
    </div>

        </div>
        <div class="aside r">
            <div class="bd">
    
        
        <div class="box mb40 js-usercard-box">
        <h4>讲师提示</h4>
                        <div class="teacher-info">
            <a href="/u/106511/courses?sort=publish" target="_blank" >
                <img data-userid="106511" class="js-usercard-dialog" src="picture/533a1c58000138bd02610245-80-80.jpg" width="80" height="80">
            </a>
            <span class="tit">
                <a href="/u/106511/courses?sort=publish" target="_blank">Kings</a><i class="icon-imooc"></i>
            </span>
            <span class="job"></span>
        </div>
                <div class="teacher-info">
            <a href="/u/193479/courses?sort=publish" target="_blank" >
                <img data-userid="193479" class="js-usercard-dialog" src="picture/53e73d3b00011abe04550504-80-80.jpg" width="80" height="80">
            </a>
            <span class="tit">
                <a href="/u/193479/courses?sort=publish" target="_blank">BobWang</a><i class="icon-imooc"></i>
            </span>
            <span class="job">PHP开发工程师</span>
        </div>
                                <div class="course-info-tip">
                        <dl class="first">
                <dt>课程须知</dt>
                <dd class="autowrap">没有任何WEB经验的WEB应用程序开发者及对WEB前端技术兴趣的用户。（即使你是完全的新手）</dd>
            </dl>
                                    <dl>
                <dt>老师告诉你能学到什么？</dt>
                <dd class="autowrap">1、了解PHP中的变量、变量的类型、常量等概念 2、认识PHP中的运算符，掌握PHP中顺序结构、条件结构、循环结构语句。</dd>
            </dl>
                    </div>
            </div>
    
    <div class="js-recom-box">
	<!-- <div class="box mb40 all-attention-box">
		<h4>大家都关注</h4>
		<div class="js-all-attention all-attention">
			<a href="" target="_blank" data-id="1" class="">aa</a>
			<a href="" target="_blank" data-id="2" class="">biubiu~</a>
			<a href="" target="_blank" data-id="3" class="">一个前端开发的修养</a>
			<a href="" target="_blank" data-id="4" class="">呵呵</a>
			<a href="" target="_blank" data-id="5" class="">维萨只有前端有修养</a>
			<a href="" target="_blank" data-id="6" class="">别说笑了</a>
			<a href="" target="_blank" data-id="7" class="">修养是什么</a>
			<a href="" target="_blank" data-id="8" class="">能吃么</a>
		</div>
	</div> -->
	<!-- <div class="box mb40 recom-course-list-box">
		<h4>推荐课程</h4>                   
		<ul class="js-recom-course recom-course-list clearfix">
			<li class="clearfix">                    
				<a href="http://www.imooc.com/learn/327" class="clearfix" target="_blank">
					<div class="l course-img" style="background-image: url(images/cover015_s.jpg);">
						<div class="cart-color purple"></div>
					</div>
					<div class="l content-box">                            
						<p class="smalle-title">测试克隆慕课网</p>                            
						<p class="content-text" title="asfsafsafsafsadfsafsad">asfsafsafsafsadfsafsad</p>                            
						<div class="clearfix learn-detail">                                
							初级<span>·</span>138人在学                            
						</div>                        
					</div>                    
				</a>                
			</li>
			<li class="clearfix">                    
				<a href="http://www.imooc.com/learn/327" class="clearfix" target="_blank">
					<div class="l course-img" style="background-image: url(images/cover015_s.jpg);">
						<div class="cart-color purple"></div>
					</div>
					<div class="l content-box">                            
						<p class="smalle-title">测试克隆慕课网</p>                            
						<p class="content-text" title="asfsafsafsafsadfsafsad">asfsafsafsafsadfsafsad</p>                            
						<div class="clearfix learn-detail">                                
							初级<span>·</span>138人在学                            
						</div>                        
					</div>                    
				</a>                
			</li>
			<li class="clearfix">                    
				<a href="http://www.imooc.com/learn/327" class="clearfix" target="_blank">
					<div class="l course-img" style="background-image: url(images/cover015_s.jpg);">
						<div class="cart-color purple"></div>
					</div>
					<div class="l content-box">                            
						<p class="smalle-title">测试克隆慕课网</p>                            
						<p class="content-text" title="asfsafsafsafsadfsafsad">asfsafsafsafsadfsafsad</p>                            
						<div class="clearfix learn-detail">                                
							初级<span>·</span>138人在学                            
						</div>                        
					</div>                    
				</a>                
			</li>
		</ul>  
	</div> -->
</div>

</div>        </div>
    </div>
    <div class="clear"></div>

</div>

<div class="maybe-wenda" id="maybe-wenda" style="display: none;">
    <i class="icon-chat"></i>
    <p class="text">你发的评论可能会是问题？<br/>是否将他发到问答中</p>
    <input class="btn ok" type="button" value="好的" id="wenda-ok">
    <input class="btn no" type="button" value="不用" id="wenda-no">
</div>

</div>

<div id="footer" >
    <div class="waper">
        <div class="footerwaper clearfix">
            <div class="followus r">
                <a class="followus-weixin" href="javascript:;"  target="_blank" title="微信">
                    <div class="flw-weixin-box"></div>
                </a>
                <a class="followus-weibo" href="http://weibo.com/u/3306361973"  target="_blank" title="新浪微博"></a>
                <a class="followus-qzone" href="http://user.qzone.qq.com/1059809142/" target="_blank" title="QQ空间"></a>
            </div>
            <div class="footer_intro l">
                <div class="footer_link">
                    <ul>
                        <li><a href="http://www.imooc.com/" target="_blank">网站首页</a></li>
                        <li><a href="/about/cooperate" target="_blank" title="企业合作">企业合作</a></li>
                        <li><a href="/about/job" target="_blank">人才招聘</a></li>
                        <li> <a href="/about/contact" target="_blank">联系我们</a></li>
                        <li> <a href="/about/recruit" target="_blank">讲师招募</a></li>
                        <li> <a href="/about/faq" target="_blank">常见问题</a></li>
                        <li> <a href="/user/feedback" target="_blank">意见反馈</a></li>
                        <li><a href="http://daxue.imooc.com/" target="_blank">慕课大学</a></li>
                        <li> <a href="/about/friendly" target="_blank">友情链接</a></li>
                       <!--  <li><a href="/corp/index" target="_blank">合作专区</a></li>
                        <li><a href="/about/us" target="_blank">关于我们</a></li> -->
                    </ul>
                </div>
                <p>Copyright © 2017 imooc.com All Rights Reserved | 京ICP备 13046642号-2</p>
            </div>
        </div>
    </div>
</div>


<div id="J_GotoTop" class="elevator">

    <a href="/user/feedback" class="elevator-msg" target="_blank">
        <i class="icon-feedback"></i>
        <span class="">意见反馈</span>
    </a>
    <a href="/about/faq" class="elevator-faq" target="_blank">
        <i class="icon-ques"></i>
        <span class="">常见问题</span>
    </a>
    <a href="http://www.imooc.com/mobile/app" target="_blank" class="elevator-app" >
        <i class="icon-appdownload"></i>
        <span class="">APP下载</span>
        <div class="elevator-app-box"></div>
    </a>
    <a href="javascript:void(0)" class="elevator-weixin no-goto" id="js-elevator-weixin" >
        <i class="icon-wxgzh"></i>
        <span class="">官方微信</span>
        <div class="elevator-weixin-box"></div>
    </a>
    <a href="javascript:void(0)" class="elevator-top no-goto" style="display:none" id="backTop">
        <i class="icon-up2"></i>
        <span class="">返回顶部</span>
    </a>
</div>



<script type="text/javascript" charset="utf-8" src="js/ueditor.final.min.js"></script>

<!--script-->
<script src="js/ssologin_1.js"></script>
<script type="text/javascript" src="js/sea_1.js"></script>
<script type="text/javascript" src="js/sea_config_1.js"></script>
<script type="text/javascript">seajs.use("/static/page/"+OP_CONFIG.module+"/"+OP_CONFIG.page);</script>

 

<script type="text/javascript">
  (function(){
    var imgPic = GC.course.pic || 'http://img.mukewang.com/static/img/common/logo.png',
        text = '我正在参加@慕课网  的一门课程【' + GC.course.name + '】，很不错哦！快来一起学习吧！', //节名称
        url = 'http://www.imooc.com' + window.location.pathname;

    window._bd_share_config = {
        "common": {
            "bdUrl": url,
            "bdSnsKey": {
              'tsina':'2254855082'
            },
            "bdText": text,
            "bdMini": "2",
            "bdMiniList": false,
            "bdPic": imgPic,
            "bdStyle": "0",
            "bdSize": "16"
        },
        "share": {}
    };
    setTimeout(function(){
            with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
        },1000)

  })();
</script>
<div class="mask"></div>


<script type="text/imooc-tpl" id="tpl_pl">
    <li class="post-row">
        <div class="media">
            <a href="/u/{uid}/courses" target="_blank">
                <img src="picture/d3a8ebff9d094f9485744bb21ec5410a.gif" width="40" height="40">
            </a>
        </div>
        <div class="bd">
            <div class="tit">
                <a href="/u/{uid}/courses" target="_blank">{nickname}</a>
            </div>
            <p class="cnt">{txt}</p>
            <div class="footer clearfix">
                <span title="创建时间" class="l timeago">时间：{time}</span>
                <div class="actions r">
                    <a title="赞" href="javascript:;" class="js-pl-praise list-praise post-action"  data-id="{id}">
                        <span class="icon-thumb-revert"></span>
                        <em>0</em>
                    </a>
                </div>
            </div>
      </div>
    </li>

</script>


<div style="display: none">
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ff0cfcccd7b1393990c78efdeebff3968' type='text/javascript'%3E%3C/script%3E"));
(function (d) {
window.bd_cpro_rtid="rHT4P1c";
var s = d.createElement("script");s.type = "text/javascript";s.async = true;s.src = location.protocol + "//cpro.baidu.com/cpro/ui/rt.js";
var s0 = d.getElementsByTagName("script")[0];s0.parentNode.insertBefore(s, s0);
})(document);
</script>
<script>
(function(){
    var bp = document.createElement('script');
    bp.src = '//push.zhanzhang.baidu.com/push.js';
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
</div>
</body>
</html>
